<?php
/**
 * 全局父模板
 */
use app\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
AppAsset::register($this);
?>
<?php $this->beginPage(); ?>
<!DOCTYPE html>
<html>
<head lang="<?= Yii::$app->language ?>">
     <link rel="stylesheet" type="text/css" href="<?=Url::to('@web/css/backstage.css');?>">
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head(); ?>
    <link rel="shortcut icon" type="image/x-icon" href="<?=Url::to('@web/images/toefllogo.ico');?>" />
</head>
<body>
<?php $this->beginBody();
$session = Yii::$app->session;
?>
<div class="head">
            <div class="logo fl"><a href="#"></a></div>
            <h3 class="head_text fr">托福练习平台后台管理系统</h3>
    </div>
    <div class="operation_user clearfix">
        <div class="link fl"><a href="#">托福</a><span>&gt;&gt;</span><a href="#">后台</a><span>&gt;&gt;</span>管理</div>
        <div class="link fr">
            <a>管理员：<?= $session['username'] ?></a><span></span><a href="<?=Url::to('@web/?r=admin/index');?>" class="icon icon_i">首页</a><span></span><a href="<?=Url::to('@web/?r=admin/logout');?>" class="icon icon_e">退出</a>
        </div>
    </div>
    <div class="content clearfix">
        
        <!--左侧列表-->
        <div class="menu">
            <div class="cont">
                <div class="title">管理员</div>
                <ul class="mList">
                    <li>
                        <h3><span>-</span>信息管理</h3>
                        <dl>
                            <dd><a href="<?=Url::to('@web/?r=user/index');?>">普通会员</a></dd>
                            <dd><a href="<?=Url::to('@web/?r=admin/admininfo');?>">管理员管理</a></dd>
                            <dd><a href="<?=Url::to('@web/?r=admin/class1manage');?>">一级分类管理</a></dd>
                            <dd><a href="<?=Url::to('@web/?r=admin/class2manage');?>">二级分类管理</a></dd>
                            <dd><a href="<?=Url::to('@web/?r=comment/index');?>">题解管理</a></dd>
                        </dl>
                    </li>
                    <li>
                        <h3><span>+</span>题目管理</h3>
                        <dl>
                            <dd><a href="<?=Url::to('@web/?r=admin/readinginfo');?>">reading</a></dd>
                            <dd><a href="<?=Url::to('@web/?r=write-question/index');?>">writing</a></dd>
                            <dd><a href="<?=Url::to('@web/?r=speaking-content/index');?>">speaking</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

    </div>
<div class="content">
    <?= $content ?>
</div>
<?php $this->endBody(); ?>
</body>
</html>
<?php $this->endPage(); ?>